package com.ehome.poct.core.dao.mybatis.mapper.order;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ehome.poct.core.dao.entity.order.TestOrderItemDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

@Mapper
public interface TestOrderItemMapper extends BaseMapper<TestOrderItemDO> {

    int updateStripTypeCodeByTestOrderNoAndStripTypeCode(@Param("updatedStripTypeCode") Integer updatedStripTypeCode, @Param("testOrderNo") String testOrderNo, @Param("stripTypeCode") Integer stripTypeCode);

    int updateByTestOrderNoAndStripTypeCode(@Param("updated") TestOrderItemDO updated, @Param("testOrderNo") String testOrderNo, @Param("stripTypeCode") Integer stripTypeCode);

    List<TestOrderItemDO> findByTestOrderNoAndStripTypeCodeIn(@Param("testOrderNo") String testOrderNo, @Param("stripTypeCodeCollection") Collection<Integer> stripTypeCodeCollection);
}